public class Test {
    //在同一个类中定义多个方法：要求不仅可以求2个整数的最大值，还可以求3个小数的最大值？
    public static int max(int x,int y) {
        return x>y?x:y;
    }

    public static double max(double x,double y,double z) {
       double max = x>y?x:y;
       max = max>z?max:z;
       return max;
    }

    public static void main(String[] args) {
        int a = 10;
        int b = 20;
        System.out.println(max(a,b));
        double c = 10.9;
        double d = 11.5;
        double e = 12.0;
        System.out.println(max(c,d,e));
    }
}
